inspector: Show GSETTINGS_SCHEMA_DIR when set
authorMatthias Clasen <mclasen@redhat.com>
Thu, 10 Jul 2014 21:37:26 +0000 (17:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 10 Jul 2014 21:37:26 +0000 (17:37 -0400)
gtk/inspector/general.c
gtk/inspector/general.ui

index cd00e382e63fd5f6b0fa7b29bc09851dd811a35a..697273fc3b1c6183b2c920ddef9aac9fd804b333 100644 (file)
@@ -54,6 +54,7 @@ struct _GtkInspectorGeneralPrivate
   GtkWidget *gtk_path;
   GtkWidget *gtk_exe_prefix;
   GtkWidget *gtk_data_prefix;
+  GtkWidget *gsettings_schema_dir;
   GtkWidget *touchscreen_switch;
 };
 
@@ -137,6 +138,7 @@ init_env (GtkInspectorGeneral *gen)
   set_path_label (gen->priv->gtk_path, "GTK_PATH");
   set_path_label (gen->priv->gtk_exe_prefix, "GTK_EXE_PREFIX");
   set_path_label (gen->priv->gtk_data_prefix, "GTK_DATA_PREFIX");
+  set_path_label (gen->priv->gsettings_schema_dir, "GSETTINGS_SCHEMA_DIR");
 }
 
 static void
@@ -194,6 +196,7 @@ gtk_inspector_general_class_init (GtkInspectorGeneralClass *klass)
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gtk_path);
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gtk_exe_prefix);
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gtk_data_prefix);
+  gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gsettings_schema_dir);
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, touchscreen_switch);
 }
 
index 1f7ef9d7ad75b71b1adffa0ecb1c2750b2ac2859..2ee6bccb04381ed0417fdd83904e619d8bcf3c2a 100644 (file)
                 </child>
               </object>
             </child>
+            <child>
+              <object class="GtkBox">
+                <property name="visible">True</property>
+                <property name="orientation">horizontal</property>
+                <property name="margin">10</property>
+                <property name="spacing">40</property>
+                <child>
+                  <object class="GtkLabel" id="gsettings_schema_dir_label">
+                    <property name="visible">True</property>
+                    <property name="label" translatable="yes">GSETTINGS_SCHEMA_DIR</property>
+                    <property name="halign">start</property>
+                    <property name="valign">baseline</property>
+                    <property name="xalign">0.0</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="gsettings_schema_dir">
+                    <property name="visible">True</property>
+                    <property name="halign">end</property>
+                    <property name="valign">baseline</property>
+                    <property name="ellipsize">end</property>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                  </packing>
+                </child>
+              </object>
+            </child>
           </object>
         </child>
       </object>
       <widget name="gtk_path_label"/>
       <widget name="gtk_exe_prefix_label"/>
       <widget name="gtk_data_prefix_label"/>
+      <widget name="gsettings_schema_dir_label"/>
       <widget name="touchscreen_label"/>
     </widgets>
   </object>